<?php 
namespace Admin\Model;
use Think\Model;
class GoodsModel extends Model{
	protected $_validate = array(
		array('goods_name','2,10','必需2到10位的字符串',1,'length',3),
		array('goods_sn','','请填写唯一商品号',1,'unique',3),
    );

    protected $_auto = array(
    	array('add_time','time',1,'function'),
    	array('last_update','time',2,'function'),
    	);
    protected $updatefields = 'goods_id,cat_id,goods_name,goods_number,goods_weight,shop_price,goods_desc,goods_brief,ori_img,goods_img,thumb_img,is_best,is_new,is_hot,is_sale';
}